package model;

public class Room {
	private int room_id;
	private String category_id;
	private long price;// USD/one day
	private String description;
	private int status;

	public Room() {
	}

	public Room(int id, String _category, long _price, String _description) {
		room_id = id;
		category_id = _category;
		price = _price;
		description = _description;
		status = 0;
	}

	public Room(int id, String _category, long _price, String _description,
			int status) {
		room_id = id;
		category_id = _category;
		price = _price;
		description = _description;
		this.status = status;
	}

	public int getRoom_id() {
		return room_id;
	}

	public void setRoom_id(int room_id) {
		this.room_id = room_id;
	}

	public String getCategory_id() {
		return category_id;
	}

	public void setCategory_id(String category_id) {
		this.category_id = category_id;
	}

	public void setPrice(long price) {
		this.price = price;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getID() {
		return room_id;
	}

	public String getType() {
		return category_id;
	}

	public long getPrice() {
		return price;
	}

	public String getDescription() {
		return description;
	}

	public int getStatus() {
		return status;
	}

	@Override
	public String toString() {
		return this.room_id+"";
	}
	
	public boolean equals(Room r){
		return ((room_id == r.getID()) &&
				(category_id == r.getType()) &&
				(price == r.getPrice()) &&
				(description == r.getDescription()) &&
				(status == r.getStatus()));
	}
}
